<?php
header('content-type:text/html;charset=utf8');
$tel = $_POST['tel'];
$con = mysqli_connect("localhost","root","root","ikea");
$res = mysqli_query($con,"select * from user where tel='$tel'");
$row = mysqli_fetch_assoc($res);
echo json_encode($row);